package homework41;

public class Variable extends AbstractExpression{
    private final String key;

    public Variable(String key){
        this.key = key;
    }

    @Override
    Integer interpreter(Context contex) {
        return contex.getValue(key);
    }
}
